
#include "main.h"
#define SYSTEMTICK_PERIOD_MS 10

#ifdef USE_FULL_ASSERT

void assert_failed(uint8_t* file,uint32_t line)
{
    while(1)
    {
      ;
    }
}

#endif

__IO uint32_t LocalTime=0;
uint32_t timingdelay;

void Time_Update()
{
    LocalTime+=SYSTEMTICK_PERIOD_MS;
}

void Delay(uint32_t nCount)
{
    timingdelay=LocalTime+nCount;
    while(timingdelay>LocalTime)
    {
      ;
    }
}

int main()
{
    ETH_BSP_Config();
    ADC_Configuration();
    LED_Configuration();
    LwIP_Init();
    httpd_init();
    while(1)
    {
        LwIP_Periodic_Handle(LocalTime);
    }
    return 0;
}











